import React from "react";

/**
 * 按钮尺寸类型
 */
export type ButtonSzie = "small" | "medium" | "large";

/**
 * 按钮变体类型
 */
export type ButtonVariant = "primary" | "secondary" | "danger" | "success";

/**
 * 按钮组件属性
 */
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
  /**
   * 按钮尺寸，可选值为 small、medium、large
   */
  size?: ButtonSzie;
  /**
   * 按钮变体，可选值为 primary、secondary、danger、success
   */
  variant?: ButtonVariant;
  /**
   * 子元素
   */
  children?: React.ReactNode;
}